package com.pcbly.web.business.logger;


import java.util.List;

import com.pcbly.web.bean.system.LogBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;
import com.pcbly.web.persistence.log.LoggerDao;

public class LoggerServiceImp extends BaseServiceImp<LogBean>  implements LoggerService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4542441040953948906L;
	protected LoggerDao logDao;
	
	
	public void setLogDao(LoggerDao logDao) {
		this.logDao = logDao;
	}
	public LoggerServiceImp(){
		super();
	}
	public void saveLogger(LogBean bean)throws Exception{
		logDao.saveLogger(bean);
	}
	@Override
	public List<LogBean> getAllLogBeans() throws Exception {
		// TODO Auto-generated method stub
		return logDao.getAll();
	}
	@Override
	public Page<LogBean> getPageLogBeans(LogBean bean) throws Exception {
		// TODO Auto-generated method stub
		return logDao.getPageLogBeans(bean);
	}

}
